import request from "@/config/request.js";

//获取用户信息
export function getUserInfo(data) {
	return request({
		url: '/api/front/user/getUserInfo',
		method: 'GET',
		data
	})
}
//修改获取用户信息(名字)
export function editUserInfo(data) {
	return request({
		url: '/api/front/user/editUserInfo',
		method: 'POST',
		data
	})
}
//修改获取用户信息(头像)
export function editUserAvatar(data) {
	return request({
		url: '/api/front/user/userUpdatePhoto',
		method: 'POST',
		data
	})
}

/* 支付接口 */
export function getWeixinXcxPayV3(data) {
	return request({
		url: '/api/front/pay/weixinXcxPayV3',
		method: 'POST',
		data
	})
}

/* 支付查询接口 */
export function getSelectPayResult(data) {
	return request({
		url: '/api/front/pay/selectPayResult',
		method: 'GET',
		data
	})
}